翻訳と辞書
Words near each other
・ "O" Is for Outlaw
・ "O"-Jung.Ban.Hap.
・ "Ode-to-Napoleon" hexachord
・ "Oh Yeah!" Live
・ "Our Contemporary" regional art exhibition (Leningrad, 1975)
・ "P" Is for Peril
・ "Pimpernel" Smith
・ "Polish death camp" controversy
・ "Pro knigi" ("About books")
・ "Prosopa" Greek Television Awards
・ "Pussy Cats" Starring the Walkmen
・ "Q" Is for Quarry
・ "R" Is for Ricochet
・ "R" The King (2016 film)
・ "Rags" Ragland
・ ! (album)
・ ! (disambiguation)
・ !!
・ !!!
・ !!! (album)
・ !!Destroy-Oh-Boy!!
・ !Action Pact!
・ !Arriba! La Pachanga
・ !Hero
・ !Hero (album)
・ !Kung language
・ !Oka Tokat
・ !PAUS3
・ !T.O.O.H.!
・ !Women Art Revolution


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

generic function : ウィキペディア英語版
generic function

In certain systems for object-oriented programming such as the Common Lisp Object System〔(The Common Lisp Object System: An Overview )〕 and Dylan, a generic function is an entity made up of all methods having the same name. Typically a ''generic function'' itself is an instance of a class that inherits both from ''function'' and ''standard-object''. Thus generic functions are both functions (that can be called with and applied to arguments) and ordinary objects. The book ''The Art of the Metaobject Protocol'' explains the implementation and usage of CLOS generic functions in detail.
Flavors is one of the early object-oriented programming extensions to Lisp. It used the usual message sending paradigm influenced by Smalltalk. The syntax for sending a message in Flavors is:

(send object :message)

With New Flavors it was decided the message should be a real function and the usual function calling syntax should be used:

(message object)

''message'' now is a ''generic function'', an object and function in its own right. Individual implementations of the ''message'' are called ''methods''.
The same idea was implemented in CommonLoops.〔(CommonLoops, Merging Lisp and Object-Oriented Programming )〕 New Flavors and CommonLoops were the main influence for the Common Lisp Object System.
== Example ==


抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「generic function」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.